import {getLoginLog , getOperaLogSearch} from '@/api/log/log'
const state ={
    loginLogList:{},
    operaLogList:{}
}
const actions = {
    async actionGetLoginLog({commit},pageInfo){
        const res = await getLoginLog(pageInfo)
        console.log('登录日志',res)
        commit('SET_LOGINLOG_LIST',res)
    },
    async actionGetOperaLogSearch({commit},pageInfo){
        const res = await getOperaLogSearch(pageInfo)
        commit('SET_OPERALOG_LIST',res)
    }
}
const mutations = {
    SET_LOGINLOG_LIST:(state,res)=>{
        state.loginLogList=res
    },
    SET_OPERALOG_LIST:(state,res)=>{
        state.operaLogList = res
    }
}
export default{
    namespaced: true,
    state,actions,
    mutations
}